package cn.silver.module.system.bean;

import cn.silver.framework.mybatis.bean.BaseBean;
import cn.silver.module.authority.bean.RoleBean;
import cn.silver.module.system.domain.SysUserRole;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;

@Data
@AutoMapper(target = SysUserRole.class)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(name = "SysUserRoleModel", title = "用户角色关联对象")
public class UserRoleBean extends BaseBean {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(title = "用户信息主键")
    private String userId;
    @Schema(title = "角色信息主键")
    private String roleId;
    @Schema(title = "用户信息")
    private UserBean user;
    @Schema(title = "角色信息")
    private RoleBean role;
}
